package academic.concordia.bankofquebec.bean.authentication;

import java.util.Collection;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import academic.concordia.bankofquebec.entity.Client;

public class MyAuthenticationToken extends UsernamePasswordAuthenticationToken {

	// ----------------------------------- PRIVATE ATTRIBUTES
	private Client client = null;
	
	// ----------------------------------- CONSTRUCTOR
	public MyAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities, Client client){
		super(principal, credentials, authorities);
		this.client = client;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}
}
